import request from '@/utils/request'

// 查询商家店铺关联列表
export function listDistributorShop(params) {
  return request({
    url: '/distribution/skuShop/getDistributorShopListByPage',
    params
  })
}

// 查询商家店铺关联详细
export function getDistributorShop(id) {
  return request({
    url: '/distribution/distributorShop/' + id,
    method: 'get'
  })
}

// 新增商家店铺关联
export function addDistributorShop(data) {
  return request({
    url: '/distribution/distributorShop',
    method: 'post',
    data: data
  })
}

// 修改商家店铺关联
export function updateDistributorShop(data) {
  return request({
    url: '/distribution/distributorShop',
    method: 'put',
    data: data
  })
}

// 删除商家店铺关联
export function delDistributorShop(id) {
  return request({
    url: '/distribution/distributorShop/' + id,
    method: 'delete'
  })
}

/**禁用店铺抓取数据功能 */
export function forbidden(data) {
  return request({
    url: '/distribution/distributorShop/forbidden',
    method: 'post',
    data,
  })
}
